Button Class

Represents a button.

Definition

Namespace: Independentsoft.Office.Odf.Forms
Assembly: Independentsoft.Office (in Independentsoft.Office.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#
public class Button : Control
Inheritance
Object    Control    Button

Constructors

Button Initializes a new instance of the Button class.

Properties

ControlImplementation Contains the specific concrete rendition or implementation of a control that should be instantiated.
EnableTabbingNavigation Specifies whether a control is included in the tabbing navigation order. The defined values are: -false: control is not included in tabbing navigation order. -true: control is included in tabbing navigation order.
EventListeners
(Inherited from Control)
FocusOnClick Specifies if a button is given the focus in a form when the form button control for that element is clicked with a mouse.
ID Contains an identifier for a control element.
ImageAlignment Specifies which border (start, end) or axis (center) of an image and a text are to be aligned. The defined values are: -center: image and text are centered. -end: image and text are aligned on the end of the image. -start: image and text are aligned on the start of the image. If a form:image-align attribute is not present, it is assumed to be center.
ImageLink Contains the location of a file containing image data.
ImagePosition Specifies the location of an image relative to the text of a control. The defined values are: - bottom: image is placed below the text. - center: image centered relative to the text. - end: image is placed after the text. - start: image is placed before the text. - top: image is placed above the text.
IsDefaultButton Specifies whether a button is the default button on a form.
IsDisabled Specifies whether a control can accept user input.
IsPrintable Specifies whether a control is printed when a user prints a document in which the control is contained.
IsToggle Specifies whether a form button control acts as push button or as toggle button.
Name Contains the name of a form or control element.
Properties
(Inherited from Control)
TabIndex Contains tabbing navigation order of controls within a form.
TargetFrame Specifies the target frame. The defined values are: - _blank: The referenced document is displayed in a new frame. - _parent: The referenced document is displayed in the parent frame of the current frame. - _self: The referenced document replaces the content of the current frame.
TargetLocation Locates a remote resource.
Title Contains additional information about a control.
Type Specifies the type of a button. The defined values are: -push: pressing the button does not perform any action by default. A user can add scripts to a button and the script will run when the button is pressed. -reset: pressing the button resets every control in the form to its default value. -submit: pressing the button submits the form. -url: pressing the button loads the URL that is specified in the xlink:href attribute.
Value Contains the default value of an input control.
XFormsSubmission Specifies the name of a submission for a button control.

Methods

Clone Creates a new object that is a deep copy of the current instance.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetContentElements Returns all content elements.
(Overrides ControlGetContentElements)
GetHashCode
(Inherited from Object)
GetParent
(Inherited from Control)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString Converts the value of the current Button object to its equivalent string representation.
(Overrides ObjectToString)

See Also